<template>
  <view>
    {{list1.name}}
  </view>
</template>

<script>
  export default {
    data() {
      return {
       list1:{},
       list:[
         {
           id:1,
           name:'办公综合业务',
           imgUrl:"../../static/images/c0.png"
         },
         {
           id:2,
           name:'专卖管理',
           imgUrl:"../../static/images/c1.png"
         
         },
         {
           id:3,
           name:'法规管理',
           imgUrl:"../../static/images/c2.png"
         },
         {
           id:4,
           name:'财务管理',
           imgUrl:"../../static/images/c3.png"
         },
         {
           id:5,
           name:'人事管理',
           imgUrl:"../../static/images/c4.png"
         },
         {
           id:6,
           name:'党建管理',
           imgUrl:"../../static/images/c5.png"
         },
         {
           id:7,
           name:'工会管理',
           imgUrl:"../../static/images/c6.png"
         },
         {
           id:8,
           name:'纪检监察',
           imgUrl:"../../static/images/c7.png"
         }
         
       ]
              
      }
    },
    onLoad(e) {
      // console.log(e.id);
      this.getData(e.id)
    },
    methods: {
      getData(id){
        this.list1=this.list[id]
        console.log(this.list1);
      }
    }
  }
</script>

<style>

</style>
